#ifndef __M_LEVEL__
#define __M_LEVEL__
namespace lyzlog
{
    class Loglevel
    {
        public:
        enum class value
        {
            UNKNOW = 0,
            DEBUG,
            INFO,
            WEAR,
            ERROR,
            FATAL,
            OFF
        };
        static const char* toString(Loglevel::value level)
        {
            switch(level)
            {
                case Loglevel::value::DEBUG: return "DEBUG";
                case Loglevel::value::INFO: return "INFO";
                case Loglevel::value::WEAR: return "WEAR";
                case Loglevel::value::ERROR: return "ERROR";
                case Loglevel::value::FATAL: return "FATAL";
                case Loglevel::value::OFF: return "OFF";
            }
            return "UNKNOW";
        }
    };
   
}

#endif